home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4558 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.1 KB  |  36 lines

  1. Newsgroups: comp.lang.c++
  2. Path: netcom.com!gibson
  3. From: gibson@netcom.com (Bob Gibson)
  4. Subject: Re: READ THIS!!!!!!!!!!!
  5. Message-ID: <gibsonDM0rEt.Cqu@netcom.com>
  6. Organization: A number of persons or groups united for some purpose
  7. X-Newsreader: TIN [version 1.2 PL1]
  8. References: <4em5fs$a86@ixnews4.ix.netcom.com>
  9. Date: Wed, 31 Jan 1996 00:16:04 GMT
  10. Sender: gibson@netcom3.netcom.com
  11.  
  12. Jeremy Johnston (jeremyx@ix.netcom.com) wrote:
  13.  
  14. :   ok....now that I have your attention i need some help.
  15. : I can't get the following command to work & the compiler says that the
  16. : constant has too many characters.
  17.  
  18. :   char dos;
  19. :     if(dos=='dir')
  20. :     goto b;
  21.  
  22. : How can i do this to get it to work? please help,I know you can.
  23.  
  24.   Uhhh.  You promised that the variable named dos would be a single
  25. character.  So far, so good.  However, the comparison is trying to
  26. compare a single character to a character constant with 3 characters
  27. in it.  In addition, you have a goto.  Why don't you trying reading
  28. some intorductory programming book???
  29.  
  30.  
  31.  
  32. -- 
  33. O.J. Verdict - The best innocence money can buy
  34.  
  35. Bob Gibson -- gibson@netcom.com
  36.